home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 132_01 / pass2.c < prev    next >
Text File  |  1985-08-19  |  512b  |  23 lines

  1. /*
  2.     pass 2 writes out those objects in the page list flagged 
  3.     for WRITE and clears all flags except the BLANKED flag.
  4. */
  5. pass2(mscan,pgscan,pscrn)
  6. int    *mscan,*pgscan,*pscrn;
  7. {
  8. int    pgflag;
  9.     while(pgscan[FORWARD] !=NULL) {
  10.         pgflag=pgscan[FLAGS];
  11.         if(WRITE&pgflag) {
  12.             writeobj(pscrn,NBYTES,pgscan[X],pgscan[Y],pgscan[OBJPTR]);
  13.         }
  14.         pgscan[FLAGS]=pgflag&BLANKED;
  15.         pgscan=pgscan[FORWARD];
  16.     }
  17. }
  18. FORWARD];
  19.     }
  20. }
  21. continue;
  22.                 if(!(WRITE&pgscan1[FLAGS])) { /* no write */
  23.                     if(overlap(pg